{extend name="public:_base" /}
{block name="main"}

{include file="setview/bar" /}
<div class="page-container">

    <div class="row cl">

        <table class="layui-table">
            <thead>
                <tr class="text-c">
                    <th width="10">序号</th>
                    <th width="300">名称</th>
                    <th width="30">目录</th>
                    <th width="100">操作</th>
                </tr>
            </thead>

            <tbody>
                {volist name="dirlist" id="vo"}
                <tr class="text-c va-m">
                    <td>{$i}</td>
                    <td class="text-l">
                        {$vo.name}
                    </td>
                    <th>{$vo.dirname}</th>
                    <td>
                        <a href="{:url('setview/index',['dir'=>$vo.dirname,'type'=>$type])}"
                            title="编辑模板">编辑({$vo.name})</a>
                    </td>
                </tr>
                {/volist}
            </tbody>
        </table>

    </div>

</div>
{/block}